import { Calendar, Space } from "antd";
const View = () => {
    const onPanelChange = (value, mode) => {
        console.log(value.format("YYYY-MM-DD"), mode);
    };
    return (
        <>
            <h1>Calendar</h1>
            <div
                style={{
                    width: "300",
                    border: "1px solid #ccc",
                    borderRadius: "4px",
                }}
            >
                <Calendar onPanelChange={onPanelChange} />
            </div>
            <h1>自定义渲染</h1>
            <Calendar onPanelChange={onPanelChange} />
        </>
    );
};

export default View;
